package com.yue.ssa.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yue.ssa.bean.RespBean;
import com.yue.ssa.bean.Role;

import java.util.List;

/**
 * @author zhengyl
 * @description
 * @date 2020-04-08 9:34
 */
public interface RoleService extends IService<Role> {
    List<Role> getRolesByUid(String uid);

    RespBean get(String id);

    RespBean add(Role role);

    RespBean update(Role role);

    RespBean page(String keyword, Integer pageNo, Integer pageSize);

    boolean nameIsExist(String name);

    RespBean delete(String[] ids);
}
